/**
 * 
 */
package com.ywm8.ywm.utils;

import javax.servlet.http.Cookie;

/**
 * @author wangruishun
 * @version ywm8 1.0 2014-2-22 下午8:07:10
 */
public class GetCookie {
	public static String getCookieValue(Cookie[] cookies, String str) {
		String result = null;
		for (Cookie cookie : cookies) {
			if (cookie.getName().equals(str)) {
				result = cookie.getValue();
				break;
			}
		}
		return result;
	}
}
